﻿using Prism.Unity;
using System.Windows;
using FrameWork.Core.Infrastructure;

namespace AncheStart.Techno
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        #region ___字段___
        private Prism.Ioc.IContainerExtension m_Container;
        #endregion

        #region ___构造函数___
        public MainWindow(Prism.Ioc.IContainerExtension container)
        {
            m_Container = container;
            InitializeComponent();
        }
        #endregion

        #region ___加载完成___
        /// <summary>
        /// 页面加载完成
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NbWindow_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            var unityExtension = m_Container as UnityContainerExtension;
            ////////////////初始化系统//////////////
            EngineContext.Initialize(false, new UnityContainerExtension(unityExtension.Instance));
            //Console.WriteLine("启动成功");
        }
        #endregion
    }
}